package com.ybzl.gateway.domain;

import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class Beacon {
    private Long ts;
    private String beaconId;
    private Integer beaconPower;
    private Double beaconX;
    private Double beaconY;
    private Integer rssi;
    private String tagId;


    public Beacon(Long ts, String beaconId, Integer beaconPower, Double beaconX, Double beaconY) {
        this.ts = ts;
        this.beaconId = beaconId;
        this.beaconPower = beaconPower;
        this.beaconX = beaconX;
        this.beaconY = beaconY;
    }

    public Beacon(String beaconId, Double beaconX, Double beaconY, Integer rssi) {
        this.beaconId = beaconId;
        this.beaconX = beaconX;
        this.beaconY = beaconY;
        this.rssi = rssi;
    }

    public Beacon(String beaconId, Integer rssi) {
        this.beaconId = beaconId;
        this.rssi = rssi;
    }

    public Beacon(String beaconId, Integer rssi, String tagId) {
        this.beaconId = beaconId;
        this.rssi = rssi;
        this.tagId = tagId;
    }
}
